package com.Stream;

import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;

public class StreamDemo09 {
    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList<>();
        list.add("zhangsan,23");
        list.add("lisi,24");
        list.add("wangwu,25");
        List<Integer> list1 = list.stream().map(e -> e.split(",")[1]).map(e -> Integer.valueOf(e)).collect(Collectors.toList());
        System.out.println(list1);
    }
}
